package vip.xiaozhao.paotui.service;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import vip.xiaozhao.paotui.intf.entity.PaotuiWallet;
import vip.xiaozhao.paotui.intf.mapper.PaotuiWalletMapper;
import vip.xiaozhao.paotui.intf.service.PaotuiWalletService;

@Service
@Slf4j
public class PaotuiWalletServiceImpl implements PaotuiWalletService {

    @Autowired
    private PaotuiWalletMapper walletMapper;

    @Override
    public PaotuiWallet loadById(int id) {
        return walletMapper.loadById(id);
    }

    @Override
    public int insert(PaotuiWallet wallet) {
        return walletMapper.insert(wallet);
    }

    @Override
    public int update(PaotuiWallet wallet) {
        return walletMapper.update(wallet);
    }
}
